import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
// import dataV from '@jiaminghi/data-view';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import { post, fetch, patch, put, remove, getStatus } from './utils/http';

// Vue.use(dataV);
Vue.use(ElementUI);


// // 按需引入vue-awesome图标
// import Icon from 'vue-awesome/components/Icon';
// import 'vue-awesome/icons/chart-bar.js';
// import 'vue-awesome/icons/chart-area.js';
// import 'vue-awesome/icons/chart-pie.js';
// import 'vue-awesome/icons/chart-line.js';
// import 'vue-awesome/icons/align-left.js';

// 全局注册图标
// Vue.component('icon', Icon);

// 适配flex
import '@/common/flexible.js';

// 引入全局css
import 'normalize.css'
import 'font-awesome/scss/font-awesome.scss'
import './assets/scss/main.scss'



Vue.config.productionTip = false;

Vue.prototype.$post = post;
Vue.prototype.$fetch = fetch;
Vue.prototype.$patch = patch;
Vue.prototype.$put = put;
Vue.prototype.$remove = remove;
Vue.prototype.$getStatus = getStatus;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app');
